import axios from '@/api/fetch';
import SERVER from '@/api/server';

//查询公告
export const getManage = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/dealer/msgRecordManage/getNotice`, { params });
//保存
//export const postAdviceRule = (params) => axios.put(`${SERVER.DMSCLOUD_BASEDATA}/commonDatas/adviceRule`, { params });

//新增
export const postManage = (params) => axios.post(`${SERVER.DMSCLOUD_BASEDATA}/dealer/msgRecordManage`, params);

//操作--发布
export const updateStatus = (params,msgId) => axios.put(`${SERVER.DMSCLOUD_BASEDATA}/dealer/msgRecordManage/updateStatus/${msgId}`, params);

//编辑保存
export const updateNotice = (params) => axios.put(`${SERVER.DMSCLOUD_BASEDATA}/dealer/msgRecordManage/updateNotice`, params);

//编辑发布
export const updateNoticeSend = (params,msgId) => axios.put(`${SERVER.DMSCLOUD_BASEDATA}/dealer/msgRecordManage/updateStatus/${msgId}`, params);




